﻿using System;
using Lottery.App.DAL;

namespace Lottery.App
{
    public class GlobalData
    {
        public static int CurrentID { get; private set; }
 
        private GlobalData() { }
        static GlobalData() 
        {
            Refresh();
        }

        public static void Refresh()
        {
            CurrentID = new RecordDao().GetCount();
        }

    }
}
